<php>
//数据格式：
/**
$tmp_mms_sample_data['send_format'] = 'mms';//发送类型 sms或mms。
$tmp_mms_sample_data['mms_bg']='';//发送的mms背景图片路径getAttachUrl(getMmsBg($order_data['shelf']['shelf_id']))
$tmp_mms_sample_data['mms_card']='';//发送的mms对应的贺卡路径U('Product://Order/getSmsImg',array('rand'=>time()))

$tmp_mms_sample_data['tplt_data']['{sender_name}'] 	= '';//order_data['sender']['sender_name'];//发送者
$tmp_mms_sample_data['tplt_data']['{sms_message}'] 	= '';//order_data['txtdata']['txt_content'];//短信发送的文字
$tmp_mms_sample_data['tplt_data']['{partner_title}']	= '';//order_data['shelf']['partner_title'];//商户名称
$tmp_mms_sample_data['tplt_data']['{coupon_passcode}']	= '';//'********';//商品券码
$tmp_mms_sample_data['tplt_data']['{goods_title}']		= '';//order_data['shelf']['goods_title'];//商品名称
$tmp_mms_sample_data['tplt_data']['{goods_quantity}']	= '';//order_data['receivers']['send_total_no'];//商品数量
$tmp_mms_sample_data['tplt_data']['{goods_expired_date}']	= '';//C('COUPON_EXPIRED_DATE')."天内有效（发送日期算起）";		
**/

if( in_array('mms', explode(',',$tmp_mms_sample_data['send_format']) ) ){	
	$tmp_mms_sample_data['send_format'] = 'mms';
}						
</php>
<script src="__PUBLIC__/Js/flashSlider/photo-switch.js" type="text/javascript"></script>
<script type="text/javascript">
    <php>if($tmp_mms_sample_data['send_format']=='mms'){</php>
    $(document).ready(function(){
    	$('#bemo_box').switchboxaction({Time:5000,SwitchTime:3000,switchindex:'#bemo_bar',onclass:'bemo_bar_on',SwitchMode:'Hover',AutoStart:true,SwitchEffect:'show'});
    });
    <php>}</php>
</script>


							<div class="mmsReview">
								<div class="mmsCon">
								
								   <ul id="bemo_box">
								   		<php>if($tmp_mms_sample_data['send_format']=='mms'){</php>
									   	<li class="switch_item" style="display: list-item;">
									   		<div style="padding:3px;">
									    		<img id="mms_bg" src="{$tmp_mms_sample_data['mms_bg']}"
														style="width:205px"/>
												<img id="mms_card" src="{$tmp_mms_sample_data['mms_card']}" 
														style="left: 3px; position: absolute;top: 3px; width: 205px;"/>
												<span class="passcode"><php>echo $tmp_mms_sample_data['tplt_data']['{coupon_passcode}'];</php></span>
								   			</div>
										</li>
	    								<php>}</php>
										<li class="switch_item" style="display: list-item;">
											<div style="padding:5px;font-zise:14px;line-height:20px;text-align: left;">
												<php>	
													//$tmp_configTpltfpath = getMMSContentTemplet();
													$ary_templet = getMMSContentTemplet();
													$c_tmp_templet = $ary_templet['tplt_'.$tmp_mms_sample_data['send_format']];
													$tmp_sendTxt = strtr($c_tmp_templet,$tmp_mms_sample_data['tplt_data']);
													$tmp_sendTxt = strtr($tmp_sendTxt,array(chr(10)=>"</span><br><span>"));
												</php>
												<span>
													{$tmp_sendTxt}
												</span>
											</div>
										</li>
									</ul>
									<php>if($tmp_mms_sample_data['send_format']=='mms'){</php>
									<ul id="bemo_bar">
								    	<li class="bemo_bar">第一页</li>
								  		<li class="bemo_bar">第二页</li>
							        </ul>
	    							<php>}</php>
								</div>
							</div>
<php>unset($tmp_mms_sample_data);</php>